<?php
@ session_start();
include_once("class.lib/config.php");
include_once("class.lib/db.class.php");
include_once("class.lib/aa_equipe.class.php");

include_once("class.lib/aa_equipe_attachment.class.php");


if(isset($_GET['id_ue'])){
	$code_ue=$_GET['id_ue'];
}else{
	$code_ue=$_SESSION['code'];
}

$aa_equipe=new aa_equipe();
$res=$aa_equipe->SELECT_CV(" AND id_ue='".$code_ue."'");


?>

<table id="listajout" width="600">

<tr bgcolor="#72CFC2">
<td>Nom</td><td>Pr&eacute;nom</td><td>Grade</td><td>Email</td><td>Tel.</td><td>Sp&eacute;cialit&eacute;</td><td>&Eacute;tablissement</td><td>Cv</td><td>Actions</td>
</tr>

<?php
while($row=$aa_equipe->fetch_object()){
?>


<tr>
	<td><?php echo $row->nom; ?></td>
	<td><?php echo $row->prenom; ?></td>
	<td><?php echo $row->grade; ?></td>
	<td><?php echo $row->email; ?></td>
	<td><?php echo $row->tel; ?></td>
	<td><?php echo $row->specialite; ?></td>
	<td><?php echo $row->id_universite; ?></td>
	<td>
	<?php if($row->file_name!='') {?>
	<a id="cv<?php echo $row->id_coconcepteur;?>" href="http://<? echo $_SERVER['SERVER_NAME'].'/appelprojet/'.Folder.$row->file_name; ?>" style="text-decoration:none;">
	<img src="images/cv.png" style="text-decoration:none;"></a>
		<?php } else {
		//<?php echo $aa_equipe_att->get_file_name(); ?>
		
		<?php } ?>
		</td>
	<td align="center">
		<a href="#" onclick="load_page_action('updateequipe.php?id_ue=<? echo $code_ue;?>','modif_<?php echo $row->id_coconcepteur;?>','<?php echo $row->id_coconcepteur;?>');">Modifier</a> | 
		<a href="#" onclick="load_page_action('deleteequipe.php?id_ue=<? echo $code_ue;?>','modif_<?php echo $row->id_coconcepteur;?>','<?php echo $row->id_coconcepteur;?>');"> Supprimer</a>
	</td>
</tr>
<tr>
<td colspan="7" class="espacemodif" id="modif_<?php echo $row->id_coconcepteur;?>"></td>
</tr>


<?php
}
?>
</table>